package com.ecoolex.ying.space.core.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ecoolex.framework.common.pojo.Page;
import com.ecoolex.ying.space.core.mapper.MarktingWholeHouseCaseMapper;
import com.ecoolex.ying.space.entity.MarktingWholeHouseCase;

public interface MarktingWholeHouseCaseDAO extends MarktingWholeHouseCaseMapper {
	
	long count(@Param("name") String name);
	
	List<MarktingWholeHouseCase> query(@Param("name") String name , @Param("sorts") String sorts , @Param("page") Page page);
	
	MarktingWholeHouseCase getOnlineById(@Param("id") Integer id);
	
	long countByOnline(@Param("name") String name);
	
	List<MarktingWholeHouseCase> queryByOnline(@Param("name") String name , @Param("sorts") String sorts , @Param("page") Page page);
}